package com.yangj.servlet;

import javax.servlet.http.*;
import com.yangj.service.*;
import javax.servlet.*;
import java.io.*;

public class GetTicketServlet extends HttpServlet
{
    protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {
        final PrintWriter out = resp.getWriter();
        //获得 ticket
        final String ticket = WeChatVerifyService.getQrCodeTicket();
        out.print(ticket);
        out.flush();
        out.close();
    }
    
    protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {
    }
}
